package cn.youqu.happy.module.youqu.controller.app.arrangeEdit.vo;

import cn.youqu.happy.framework.common.validation.InEnum;
import cn.youqu.happy.module.youqu.enums.arrangeEdit.ArrangeEditApplyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

import static cn.youqu.happy.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel("用户 APP - 计划申请修改创建 Request VO")
@Data
@ToString(callSuper = true)
public class AppArrangeEditCreateReqVO {
    @ApiModelProperty(value = "安排id")
    @NotNull(message = "安排id 不能为空")
    private Integer arrangeId;

    /**
     * {@link ArrangeEditApplyTypeEnum}
     */
    @ApiModelProperty(value = "申请类型")
    @NotNull(message = "申请类型 不能为空")
    @InEnum(ArrangeEditApplyTypeEnum.class)
    private Integer applyType;

    @ApiModelProperty(value = "修改活动时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date modifyTime;
}
